package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.project.bean.BuyDetailBean;
import com.project.bean.BuyOrderBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;
import java.util.List;

@Mapper
public interface IBuyOrderMapper extends BaseMapper<BuyOrderBean> {
    public IPage<BuyOrderBean> cutByItem(IPage pg, @Param("sName") String sName,
                                         @Param("startDate") LocalDate startDate,
                                         @Param("endDate") LocalDate endDate);

    public BuyOrderBean findDetailByOrderId(Integer buyOrderId);

}
